package cn.tedu.tmall.admin.mall.dao.persist.repository.impl;


import cn.tedu.tmall.admin.mall.dao.persist.mapper.CategoryMapper;
import cn.tedu.tmall.admin.mall.dao.persist.mapper.GoodsMapper;
import cn.tedu.tmall.admin.mall.dao.persist.repository.ICategoryRepository;
import cn.tedu.tmall.admin.mall.dao.persist.repository.IGoodsRepository;
import cn.tedu.tmall.admin.mall.pojo.entity.Category;
import cn.tedu.tmall.admin.mall.pojo.entity.Goods;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
public class GoodsRepositoryImpl implements IGoodsRepository {

@Autowired
private GoodsMapper goodsMapper;

    @Override
    public int insert(Goods goods){
        return goodsMapper.insert(goods);

    }
}
